#include "total.h"

#define STACK_SIZE 10000

static char stack[STACK_SIZE];
static int sp =0;

void push(const char ch) {
    if (sp>=STACK_SIZE) {
        printf("栈满\n");
    }else {
        stack[sp++] = ch;
    }
}

char pop() {
    if (sp<0) {
        printf("栈空\n");
        return "\0";
    }else {
        return stack[--sp];
    }
}
